#include "Driver.hpp"
#include "Camera.hpp"
#include <spdlog/spdlog.h>

const std::string VirtualDriver::CameraUUID = "V001";

VirtualDriver::VirtualDriver() { camera = new VirtualCamera(CameraUUID); }

std::vector<std::pair<std::string, BaseCamera *>>
VirtualDriver::GetCameraList() {
  return {{CameraUUID, dynamic_cast<BaseCamera *>(camera)}};
}

void VirtualDriver::CameraOffline(const std::string &uuid) {
  spdlog::info("CameraOffline Virtual Camera {}", uuid);
}

VirtualDriver::~VirtualDriver() { delete camera; }
